<template>  
  <div />  
</template>
<script>
import { listNormByColorAndSize, getColorList, getSizeList } from '@/api/sale'
export default {  
  data() {  
    return {  
      normList: [], // 用来存储从API获取到的norm数据  
      attribute: [],  
      sku: []  
    }  
  },  
    computed: {  
    colorAndSizeList() {  
      return this.normList.map(norm => ({  
        colorName: norm.color.colorName,  
        sizeName: norm.size.sizeName  
      }))  
    }  
  },  
  created() {  
    // this.getNormList()  
  },  
  methods: {  
    getColorList() {  
      listNormByColorAndSize().then(response => {  
        this.normList = response.data  
        // 可以在这里处理normList数据，提取colorName和sizeName  
      })  
    }  
    // 其他方法...  
  }  
}
</script>